<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
    <style>
        .ds{
            width: 100px;
            height: 100px;
        }
    </style>
</head>
<body>
<div id="app">
    <input type="text" v-model="name">
    <img :src="name" alt="">
    <button @click="handlClick">按 钮</button>
    <div v-text="text"></div>
    <div v-html="'<h1>XXX</h1>'"></div>
<!--    表单绑定-->
    
<!--    <div :style="show?'background:#000':'background:#fff'"-->
<!--         class="ds">-->

<!--    </div>-->
<!--    v-text v-html-->
</div>
<script>
    const vm = new Vue({
        el:'#app',
        data:{
            name:'',
            show:true,
            text:'XXXXX'
        },
        methods:{
            handlClick(){
                alert('点击')
            }
            // set(e){
            //     console.log(e.target.value)
            // }
        }
    })
</script>
</body>
</html>